import { Controller, Get, Post, Body, Patch, Param, Delete } from '@nestjs/common';
import { MinioClientNoSpecService } from './minio-client--no-spec.service';
import { CreateMinioClientNoSpecDto } from './dto/create-minio-client--no-spec.dto';
import { UpdateMinioClientNoSpecDto } from './dto/update-minio-client--no-spec.dto';

@Controller('minio-client--no-spec')
export class MinioClientNoSpecController {
  constructor(private readonly minioClientNoSpecService: MinioClientNoSpecService) {}

  @Post()
  create(@Body() createMinioClientNoSpecDto: CreateMinioClientNoSpecDto) {
    return this.minioClientNoSpecService.create(createMinioClientNoSpecDto);
  }

  @Get()
  findAll() {
    return this.minioClientNoSpecService.findAll();
  }

  @Get(':id')
  findOne(@Param('id') id: string) {
    return this.minioClientNoSpecService.findOne(+id);
  }

  @Patch(':id')
  update(@Param('id') id: string, @Body() updateMinioClientNoSpecDto: UpdateMinioClientNoSpecDto) {
    return this.minioClientNoSpecService.update(+id, updateMinioClientNoSpecDto);
  }

  @Delete(':id')
  remove(@Param('id') id: string) {
    return this.minioClientNoSpecService.remove(+id);
  }
}
